onActivityCreate

open fun onActivityCreate(@NonNull activity: @NonNull Activity)(source)

Records the parameters of an activity's launch for later use by the other methods available on this class.

Your app should call this method in your launcher activity's onCreate method to track launch state. If the app targets API 23 (Android 6.0 Marshmallow) or later, this state will be eligible for full data backup and may be restored to the user's device automatically.

*

Parameters

activity

the Activity currently running onCreate